package org.example.neo4j.controller;

import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.List;

@Node(value = "鸟")
public class BirdEntity {

    @Id
    private String name;
    private String mu;
    private String hongmo;
    private String zui;
    private String jiao;

    @Relationship(type = "目种属于")
    private List<MuEntity> muEntityList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMu() {
        return mu;
    }

    public void setMu(String mu) {
        this.mu = mu;
    }

    public String getHongmo() {
        return hongmo;
    }

    public void setHongmo(String hongmo) {
        this.hongmo = hongmo;
    }

    public String getZui() {
        return zui;
    }

    public void setZui(String zui) {
        this.zui = zui;
    }

    public String getJiao() {
        return jiao;
    }

    public void setJiao(String jiao) {
        this.jiao = jiao;
    }

    public List<MuEntity> getMuEntityList() {
        return muEntityList;
    }

    public void setMuEntityList(List<MuEntity> muEntityList) {
        this.muEntityList = muEntityList;
    }
}
